package com.cars.repository;

import com.cars.entity.Coffee;
import org.springframework.data.r2dbc.repository.R2dbcRepository;

/**
 * @author: caoqianfan
 * @date: 2023/12/20 16:53
 */
public interface CoffeeRepository extends R2dbcRepository<Coffee, String> {
    // 按名称查找
    //Flux<Coffee> findByName(String name);

    // 查询名称以给定字符串开头的数据
    //Flux<Coffee> findByNameStartingWith(String start);

    // 分页
    //Flux<Coffee> findByIdGreaterThanEqual(String startId, Pageable pageable);
}
